<f:view xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">

    <h:head></h:head>

    <h:form>

        <h:panelGrid id="grid" columns="2" cellpadding="10px">

            <f:facet name="header">
                <p:messages id="messages" />
            </f:facet>
            
            <h:outputText value="Total Amount: " />
            <h:outputText value="#{gambitController.amount}" />

            <h:outputText value="Bet:" />
            <h:inputText value="#{gambitController.bet}" />

            <p:commandButton value="RED" actionListener="#{gambitController.playRed}" update="@parent" />
            <p:commandButton value="BLACK" actionListener="#{gambitController.playBlack}" update="@parent" />
        </h:panelGrid>

    </h:form>

</f:view>